package com.ygxsk.carhome.greendao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Transient;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-07-03  17:07
 * @Description:个人登录信息；
 */
@Entity(nameInDb = "LOGININFO")//防止混淆变动
public class LoginInfo {

    /**
     * 单独的id
     */
    @Id(autoincrement = true)//主键自动增长
    @Property(nameInDb = "CUSTOMERID")
    Long customerId;

    //当前存入的时间戳；当前存入操作的；
    @Property(nameInDb = "TIMESTAMPCURRENT")
    String timeStampCurrent;

    //token内容
    @Property(nameInDb = "USERTOKEN")
    String userToken;

    @Property(nameInDb = "TRUENAME")
    String trueName;

    @Transient
    transient String communityName;

    @Property(nameInDb = "CUSTOMERINFOID")
    String customerInfoId;

    @Property(nameInDb = "LOGINNAME")
    String loginName;

    @Property(nameInDb = "EMAIL")
    String email;

    //性别,是否展示在员工个人信息之中；
    String sex;

    //头像信息内容，
    @Property(nameInDb = "PHOTOURL")
    String photoUrl;

    //登录的密码信息 是加密的
    @Property(nameInDb = "PASSWORD")
    String password;

    @Generated(hash = 107502716)
    public LoginInfo(Long customerId, String timeStampCurrent, String userToken,
                     String trueName, String customerInfoId, String loginName, String email,
                     String sex, String photoUrl, String password) {
        this.customerId = customerId;
        this.timeStampCurrent = timeStampCurrent;
        this.userToken = userToken;
        this.trueName = trueName;
        this.customerInfoId = customerInfoId;
        this.loginName = loginName;
        this.email = email;
        this.sex = sex;
        this.photoUrl = photoUrl;
        this.password = password;
    }

    @Generated(hash = 1911824992)
    public LoginInfo() {
    }

    //这里其实是一段json我只是 给它转成了string
//    String centerPurviewList;


    public Long getCustomerId() {
        return this.customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getTimeStampCurrent() {
        return this.timeStampCurrent;
    }

    public void setTimeStampCurrent(String timeStampCurrent) {
        this.timeStampCurrent = timeStampCurrent;
    }

    public String getUserToken() {
        return this.userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public String getTrueName() {
        return this.trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getCommunityName() {
        return this.communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getCustomerInfoId() {
        return this.customerInfoId;
    }

    public void setCustomerInfoId(String customerInfoId) {
        this.customerInfoId = customerInfoId;
    }

    public String getLoginName() {
        return this.loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

//    public String getConstellation() {
//        return this.constellation;
//    }

//    public void setConstellation(String constellation) {
//        this.constellation = constellation;
//    }

//    public String getMaritalStatus() {
//        return this.maritalStatus;
//    }

//    public void setMaritalStatus(String maritalStatus) {
//        this.maritalStatus = maritalStatus;
//    }

    public String getPhotoUrl() {
        return this.photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

//    public String getOccupation() {
//        return this.occupation;
//    }

//    public void setOccupation(String occupation) {
//        this.occupation = occupation;
//    }

//    public String getHobby() {
//        return this.hobby;
//    }

//    public void setHobby(String hobby) {
//        this.hobby = hobby;
//    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

//    public String getCenterPurviewList() {
//        return this.centerPurviewList;
//    }

//    public void setCenterPurviewList(String centerPurviewList) {
//        this.centerPurviewList = centerPurviewList;
//    }


}
